/**
 *
 */
package gemini.castor.ui.client.service;

import gemini.basic.model.Customer;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 *
 *
 */
@RemoteServiceRelativePath("customerService.rpc")
@Transactional(rollbackFor = Throwable.class, readOnly = false)
public interface CustomerService extends RemoteService {
	public List<Customer> getCustomerByDistributorCode(String code);
	
	public Customer saveOrUpdateCustomer(Customer customer);
	
	public void deleteCustomer(int id);
}
